REP1=1
REP2=2
running=False
while not running:
    rep = int(input("是否继续：输入1or2，1继续，2退出"))
    if rep==REP1:
        year = int(input("请输入年份"))
        dic1 = {4: "甲", 5: "乙", 6: "丙", 7: "丁", 8: "戊", 9: "己", 0: "庚", 1: "辛", 2: "壬", 3: "癸"}
        dic2 = {4: "子", 5: "丑", 6: "寅", 7: "卯", 8: "辰", 9: "巳", 10: "午", 11: "未", 0: "甲", 1: "酉", 2: "戌", 3: "亥"}
        a = year % 10
        b = year % 12
        c = dic1[a] + dic2[b]
        print("天干地支未：", c)
        running=False
    elif rep==REP2:
        print("bye")
        exit()
